package com.atguigu.common.exception;

public enum BizCodeEnum {
    UNKNOWN_EXCEPTION(10000,"未知错误类型"),
    VALID_EXCEPTION(10001,"参数格式校验失败");

    private Integer code;
    private String message;

    BizCodeEnum(Integer code,String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode(){
        return this.code;
    }

    public String getMessage(){
        return this.message;
    }
}
